package session.stateless;

import javax.ejb.Local;
import entity.Supplier;
import entity.MaterialRequirementPlan;
import entity.RawMaterialDelivery;
import entity.RawMaterialPurchaseOrder;
import java.sql.Timestamp;
import java.util.List;

@Local
public interface RawMaterialPurchaseOrderSessionBeanLocal {
    
    public MaterialRequirementPlan getMRP(Long mrpId);
    
    public void updateMRP(MaterialRequirementPlan mrp);
    
    public List<RawMaterialDelivery> getRMDs();
    
    public void addRawMaterialDelivery(RawMaterialDelivery rmd);
    
    public List<RawMaterialDelivery> getRMDsByRMPO(Long rmpoId);
    
    public List<RawMaterialPurchaseOrder> getRMPOsByStatus(String status);
    
    public void updateRMPO(Long rmpoId);
    
    public List<RawMaterialPurchaseOrder> getRawMaterialPOs();

    public void addRawMaterialPO(Timestamp deliveryDate, String remark, String userId, Supplier supplier, List<MaterialRequirementPlan> materialRequirementPlans, Double amountToPay);

    public List<MaterialRequirementPlan> getMaterialRequirementPlans();
}
